package com.alks.function.mapper.stockdept.pcfactorystockquery;

import com.alks.entity.data.entity.PcSlipDetailPack;
import com.alks.entity.data.entity.PcSlipDetailPacks;
import com.alks.function.data.dto.finance.costcheck.PcPackDetailsReq;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ms
 * @since 2023-12-20
 */
public interface SD_SQ_PcSlipDetailPackMapper extends BaseMapper<PcSlipDetailPack> {

    List<PcSlipDetailPacks> getSlipDetailPack(PcPackDetailsReq req);

    void optionPackCheck(@Param("list") List<String> list, @Param("check") String check, @Param("username") String username,String companyId);

    List<PcSlipDetailPacks> getPcSlipPackDetail(@Param("slipNo") String slipNo, @Param("companyId") String companyId);

   void savePcSlipPackDetail(@Param("list") List<PcSlipDetailPacks> list);

    BigDecimal getPcUnitPrice(PcSlipDetailPacks detailPacks);

    /*查询当日审核单据数量*/
    Integer getSlipDetailPackCfmCount(String companyId);
}
